<?php

/**
 * Class sModel
 * 对象访问模型
 * 启发于phalcon的Model
 */
class sModel {

    /**
     * @var array
     */
    protected $changes = [];

    public function __construct() {

    }

    public function __set($name, $value) {
        $changes[$name] = $value;
    }

    protected function save() {

    }

    protected function delete() {

    }

    protected static function find() {

    }

    protected static function findFirst() {

    }

    /**
     * @return array
     */
    protected function toArray() {

    }

}